/*
 * @Author: lineCode 1145938682@qq.com
 * @Date: 2024-11-23 18:25:27
 * @LastEditors: lineCode 1145938682@qq.com
 * @LastEditTime: 2025-06-26 11:39:01
 * @FilePath: /backend/shorthand-common/shorthand-common-log/src/main/java/com/angus/common/log/service/AsyncLogService.java
 */
package com.angus.common.log.service;

import com.angus.common.core.constant.SecurityConstants;
import com.angus.api.system.RemoteLogService;
import com.angus.api.system.domain.SysOperLog;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 异步调用日志服务
 * 
 * @author ruoyi
 */
@Service
public class AsyncLogService {
    @Resource
    private RemoteLogService remoteLogService;

    /**
     * 保存系统日志记录
     */
    @Async
    public void saveSysLog(SysOperLog sysOperLog) throws Exception
    {
        remoteLogService.saveLog(sysOperLog, SecurityConstants.INNER);
    }
}
